<#include "/includes/vars.inc">  
<@pp.dropOutputFile />
<#list entities.entity as entity>
    <#assign entityName = entity.@name>
    <#assign managedBean = entity.@name?uncap_first+"Controller">
        <#list entity["many-to-one"] as rel>
        <#assign entityRel = rel.@name>
        <@pp.changeOutputFile name="${webDir}/jeecode/"+entity.@name?uncap_first+"/include/"+entity.@name?cap_first+"${entityRel?cap_first}MTO.xhtml" />
<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition>
            <#list entities.entity as entity2>
                <#if entity2.@name = entityRel> 
                    <#list entity2.column as column>
                        <#if column.@primary="false">
    <h:outputLabel for="${column.@name?replace(".","_")}" value="${r"#{"}msg.${entityName?uncap_first}${column.@name?cap_first}${r"}"}:" />
                            <#if column.@type = "Date" >
    <h:outputText value="${r"#{"}${managedBean}.current.${entityRel?uncap_first}.${column.@name?uncap_first}${r"}"}">
        <f:convertDateTime pattern="${config.date.@pattern}" timeZone="${r"#{"}utilController.timeZone}" />
    </h:outputText>
                            <#else>
    <h:outputText value="${r"#{"}${managedBean}.current.${entityRel?uncap_first}.${column.@name?uncap_first}${r"}"}"/>
                            </#if>
                        </#if>
                    </#list>
                </#if>
            </#list>
    </ui:composition>

</html>
        </#list>
</#list>